
<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
echo form_open('examiner/sendmail');
        echo '<table  align="center" cellspacing="1" border="1" width=600px>';
        //echo '<tr><td colspan=5 align=right class=bar>'.$bar.'</td></tr>';
        //$titleDeleteall = '<img src ="'.base_url().'templates/images/icons/delall.jpeg" width=40 height=30 title="Click here to del mail chose" onclick="return checkLink();"/>';
        //$delteall = anchor("contact/deleteAllSendMail",$titleDeleteall);
        echo '<tr><td colspan=4 align=center>Send Mail('.$sendmail->num_rows().')</td></tr>';
        echo '
              
              <th>To</th>
              <th>Subject</th>
              <th>Content</th>
              <th>Action</th>
              ';
        foreach($sendmail->result() as $row){
            //$images='<img src="'.base_url().'application/templates/images/'.$row->staff_avarta.'" width=100 height=70>';
            //$details = anchor("user/loadUpdateForm/$row->Staff_ID",$images);
            echo "<tr>
                        
                        <td ><input type=checkbox name=checkbox[] id=checkbox[] value=$row->id_com> $row->email_to</td>
                        <td >$row->subject</td>
                        <td >$row->content</td>";
            $titleDelete = '<img src ="'.base_url().'public/frontend/images/delete.png" width=20 height=15 />';
            $delte = anchor("examiner/deleteSendMail/$row->id_com",$titleDelete);
            echo "<td  align=\"center\">$delte</td></tr>";
            
        }?>
        
        <?php 
        echo '</table>';
        
?>
</form>